//
//  XQHomeBigCardApplyingCell.m
//  JoinPeso
//
//  Created by 小琦 on 2024/11/19.
//

#import "XQHomeBigCardApplyingCell.h"

@interface XQHomeBigCardApplyingCell()

@property (nonatomic,strong) UIImageView *imageView;

@end

@implementation XQHomeBigCardApplyingCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self makeUI];
        [self makeConstraints];
    }
    return self;
}

- (void)makeUI {
    [self.contentView addSubview:self.imageView];
}

- (void)makeConstraints {
    [self.imageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.insets(UIEdgeInsetsZero);
    }];
}

#pragma mark - setter

- (void)setImageName:(NSString *)imageName {
    [self.imageView sd_setImageWithURL:[NSURL URLWithString:imageName]];
}

#pragma mark - lazy

- (UIImageView *)imageView {
    if (!_imageView) {
        _imageView = [[UIImageView alloc] init];
        [_imageView setUserInteractionEnabled:YES];
    }
    return  _imageView;
}

@end
